package com.juphoon.quiz.service;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

@CacheConfig(cacheNames = "ANSWERSERVICE")
public interface AnswerService {
    @Cacheable(key = "'xxxx'")
    List<Map<String,String>> getAll();
    @CacheEvict(key = "'xxxx'")
    Integer postAnswer();

}
